package com.gykj.rtm.facade.admin;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gykj.admin.common.entity.User;
import com.gykj.admin.common.resp.RespResultJson;

//@Component
@FeignClient("gykj-admin-service")
public interface LoginFacade {

    @RequestMapping(value="/loginCheck",method=RequestMethod.POST)
    public RespResultJson loginCheck(@RequestBody User user);
    
    @RequestMapping(value="/usersPage")
    public String usersPage();

    @RequestMapping("/rolesPage")
    public String rolesPage();

    @RequestMapping("/resourcesPage")
    public String resourcesPage();

    @RequestMapping("/403")
    public String forbidden();
    
    @RequestMapping("/logout")
    public String logout();

}
